package com.css.fxfzypg.modules.baseData.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * data_hospital
 * @author 
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HospitalEntity implements Serializable {
    /**
     * Id
     */
    private Integer dhId;

    /**
     * 经度
     */
    @Excel(name = "经度")
    private Float dhLongitude;

    /**
     * 纬度
     */
    @Excel(name = "纬度")
    private Float dhLatitude;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String dhName;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String dhType;

    /**
     * 医疗力量
     （人数）
     */
    @Excel(name = "医疗力量（人数）")
    private Integer dhPower;

    /**
     * 床位数
     */
    @Excel(name = "床位数")
    private Integer dhBedNum;

    /**
     * 地址
     */
    @Excel(name = "地址")
    private String dhAddress;

    /**
     * 添加时间
     */
    private Date dhCreatetime;

    /**
     * 修改时间
     */
    private Date dhUpdatetime;

    /**
     * 0表示删除1表示正常
     */
    private String dhIsdelete;


    private String province;//省
    private String city;//市
    private String county;//区县
    private String fileUuid;//文件UUID
    private String geomText;//空间数据解析字符串
    private String id;//主键ID

    private static final long serialVersionUID = 1L;

    public Integer getDhId() {
        return dhId;
    }

    public void setDhId(Integer dhId) {
        this.dhId = dhId;
    }

    public Float getDhLongitude() {
        return dhLongitude;
    }

    public void setDhLongitude(Float dhLongitude) {
        this.dhLongitude = dhLongitude;
    }

    public Float getDhLatitude() {
        return dhLatitude;
    }

    public void setDhLatitude(Float dhLatitude) {
        this.dhLatitude = dhLatitude;
    }

    public String getDhName() {
        return dhName;
    }

    public void setDhName(String dhName) {
        this.dhName = dhName;
    }

    public String getDhType() {
        return dhType;
    }

    public void setDhType(String dhType) {
        this.dhType = dhType;
    }

    public Integer getDhPower() {
        return dhPower;
    }

    public void setDhPower(Integer dhPower) {
        this.dhPower = dhPower;
    }

    public Integer getDhBedNum() {
        return dhBedNum;
    }

    public void setDhBedNum(Integer dhBedNum) {
        this.dhBedNum = dhBedNum;
    }

    public String getDhAddress() {
        return dhAddress;
    }

    public void setDhAddress(String dhAddress) {
        this.dhAddress = dhAddress;
    }

    public Date getDhCreatetime() {
        return dhCreatetime;
    }

    public void setDhCreatetime(Date dhCreatetime) {
        this.dhCreatetime = dhCreatetime;
    }

    public Date getDhUpdatetime() {
        return dhUpdatetime;
    }

    public void setDhUpdatetime(Date dhUpdatetime) {
        this.dhUpdatetime = dhUpdatetime;
    }

    public String getDhIsdelete() {
        return dhIsdelete;
    }

    public void setDhIsdelete(String dhIsdelete) {
        this.dhIsdelete = dhIsdelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        HospitalEntity other = (HospitalEntity) that;
        return (this.getDhId() == null ? other.getDhId() == null : this.getDhId().equals(other.getDhId()))
            && (this.getDhLongitude() == null ? other.getDhLongitude() == null : this.getDhLongitude().equals(other.getDhLongitude()))
            && (this.getDhLatitude() == null ? other.getDhLatitude() == null : this.getDhLatitude().equals(other.getDhLatitude()))
            && (this.getDhName() == null ? other.getDhName() == null : this.getDhName().equals(other.getDhName()))
            && (this.getDhType() == null ? other.getDhType() == null : this.getDhType().equals(other.getDhType()))
            && (this.getDhPower() == null ? other.getDhPower() == null : this.getDhPower().equals(other.getDhPower()))
            && (this.getDhBedNum() == null ? other.getDhBedNum() == null : this.getDhBedNum().equals(other.getDhBedNum()))
            && (this.getDhAddress() == null ? other.getDhAddress() == null : this.getDhAddress().equals(other.getDhAddress()))
            && (this.getDhCreatetime() == null ? other.getDhCreatetime() == null : this.getDhCreatetime().equals(other.getDhCreatetime()))
            && (this.getDhUpdatetime() == null ? other.getDhUpdatetime() == null : this.getDhUpdatetime().equals(other.getDhUpdatetime()))
            && (this.getDhIsdelete() == null ? other.getDhIsdelete() == null : this.getDhIsdelete().equals(other.getDhIsdelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDhId() == null) ? 0 : getDhId().hashCode());
        result = prime * result + ((getDhLongitude() == null) ? 0 : getDhLongitude().hashCode());
        result = prime * result + ((getDhLatitude() == null) ? 0 : getDhLatitude().hashCode());
        result = prime * result + ((getDhName() == null) ? 0 : getDhName().hashCode());
        result = prime * result + ((getDhType() == null) ? 0 : getDhType().hashCode());
        result = prime * result + ((getDhPower() == null) ? 0 : getDhPower().hashCode());
        result = prime * result + ((getDhBedNum() == null) ? 0 : getDhBedNum().hashCode());
        result = prime * result + ((getDhAddress() == null) ? 0 : getDhAddress().hashCode());
        result = prime * result + ((getDhCreatetime() == null) ? 0 : getDhCreatetime().hashCode());
        result = prime * result + ((getDhUpdatetime() == null) ? 0 : getDhUpdatetime().hashCode());
        result = prime * result + ((getDhIsdelete() == null) ? 0 : getDhIsdelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dhId=").append(dhId);
        sb.append(", dhLongitude=").append(dhLongitude);
        sb.append(", dhLatitude=").append(dhLatitude);
        sb.append(", dhName=").append(dhName);
        sb.append(", dhType=").append(dhType);
        sb.append(", dhPower=").append(dhPower);
        sb.append(", dhBedNum=").append(dhBedNum);
        sb.append(", dhAddress=").append(dhAddress);
        sb.append(", dhCreatetime=").append(dhCreatetime);
        sb.append(", dhUpdatetime=").append(dhUpdatetime);
        sb.append(", dhIsdelete=").append(dhIsdelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}